package day06;

public class ArrayDemo {
    public static void main(String[] args) {
        int[] a = {10,20,30,40,50};
        int[] b = new int[6];
        System.arraycopy(a,1,b,4,2);
        for (int i = 1;i<b.length;i++){
            System.out.println(b[i]);
        }
    }
}
